\documentclass[12pt, landscape]{article}
\title{Rule Output}
\date{\today}
\usepackage[a0paper, vmargin=2cm, hmargin=2cm]{geometry}
\usepackage{lingmacros}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usetikzlibrary{arrows,positioning,shapes}
\tikzset{
	%Define standard arrow tip
	>=stealth',
	%Define DS link style
	link/.style={
		<-,
		thick,
		dotted,},
	%Define DS token style
	token/.style={
		rectangle split,
		rectangle split parts=2,}
}
\usepackage{gb4e}
\begin{document}
\tikzstyle{every picture}+=[remember picture]
\maketitle

\begin{enumerate}
\item Rules for DS Pattern: [N-P $<$fs $>$]
\begin{enumerate}
\begin{item}
\begin{samepage}
Rule: [N-P $<$fs $>$] $\rightarrow$ [N]; count=2\\
Occurs in: Relation-DS-pof-3, Sentence-type-DS-1
\begin{itemize}
\begin{item}[]
Example id='Relation-DS-pof-3'
\end{item}
\begin{item}[]
No gloss is available for this example.
\end{item}
\begin{item}[]
\begin{tikzpicture}[sibling distance=48pt, level distance=24pt]
\Tree
[.\node{VP};
[.\node{NP};
[.\node{N-P};
\node[token](usane){usane\nodepart{second}PRP};
]
]
[.\node{VP-Pred};
[.\node{NP};
[.\node{NP-P};
[.\node{NP};
[.\node{NP-P};
[.\node{NP};
[.\node{NP};
[.\node{N};
\node[token](apne){apne\nodepart{second}PRP};
]
]
[.\node{NP-CC};
[.\node{CC};
\node[token](Ora){Ora\nodepart{second}CC};
]
[.\node{NP};
[.\node{N};
\node[token](piSAca){piSAca\nodepart{second}NN};
]
]
]
]
[.\node{P};
\node[token](ke){ke\nodepart{second}PSP};
]
]
[.\node{NP};
[.\node{N};
\node[token](vruwAMwa){vruwAMwa\nodepart{second}NN};
]
]
]
[.\node{P};
\node[token](kA){kA\nodepart{second}PSP};
]
]
[.\node{N};
\node[token](varNana){varNana\nodepart{second}NN};
]
]
[.\node{V};
\node[token](kiyA){kiyA\nodepart{second}VM};
]
]
]
\path[link] (usane.south) edge[bend right=88] node[pos=0.08,fill=white,sloped] {\scriptsize {k1}} (kiyA);
\path[link] (apne.south) edge[bend right=32] node[pos=0.50,fill=white,sloped] {\scriptsize {ccof}} (Ora);
\path[link] (Ora.south) edge[bend right=48] node[pos=0.30,fill=white,sloped] {\scriptsize {r6}} (vruwAMwa);
\path[link] (piSAca.south) edge[bend left=32] node[pos=0.50,fill=white,sloped] {\scriptsize {ccof}} (Ora);
\path[link] (ke.south) edge[bend left=40] node[pos=0.40,fill=white,sloped] {\scriptsize {lwg\_\_psp}} (Ora);
\path[link] (vruwAMwa.south) edge[bend right=40] node[pos=0.40,fill=white,sloped] {\scriptsize {r6-k2}} (varNana);
\path[link] (kA.south) edge[bend left=32] node[pos=0.50,fill=white,sloped] {\scriptsize {lwg\_\_psp}} (vruwAMwa);
\path[link] (varNana.south) edge[bend right=32] node[pos=0.50,fill=white,sloped] {\scriptsize {pof}} (kiyA);
\node[below=of kiyA](root){\bf root};
\path[link] (kiyA) edge (root);
\end{tikzpicture}
\end{item}
\end{itemize}
\end{samepage}
\end{item}
\begin{item}
\begin{samepage}
Rule: [N-P $<$fs $>$] $\rightarrow$ [N-P]; count=8\\
Occurs in: Relation-DS-k1-13, Relation-DS-rt-2, Conjunct_verb-DS-1, Conjunct_verb-DS-1, Relation-DS-pof-3, Relation-DS-k5-3, Relation-DS-k5-3, Relation-DS-rh-1
\begin{itemize}
\begin{item}[]
Example id='Relation-DS-k1-13'
\end{item}
\begin{item}[]
\shortex{3}{mEne&cAzxa&xeKA}{I-Erg&moon&saw}{I saw the moon.}
\end{item}
\begin{item}[]
\begin{tikzpicture}[sibling distance=48pt, level distance=24pt]
\Tree
[.\node{VP};
[.\node{NP-P};
[.\node{N-P};
\node[token](mEne){mEne\nodepart{second}PRP};
]
]
[.\node{VP-Pred};
[.\node{NP};
[.\node{N};
\node[token](cAzxa){cAzxa\nodepart{second}NN};
]
]
[.\node{V};
\node[token](xeKA){xeKA\nodepart{second}VM};
]
]
]
\path[link] (mEne.south) edge[bend right=40] node[pos=0.40,fill=white,sloped] {\scriptsize {k1}} (xeKA);
\path[link] (cAzxa.south) edge[bend right=32] node[pos=0.50,fill=white,sloped] {\scriptsize {k2}} (xeKA);
\node[below=of xeKA](root){\bf root};
\path[link] (xeKA) edge (root);
\end{tikzpicture}
\end{item}
\end{itemize}
\end{samepage}
\end{item}
\end{enumerate}
\end{enumerate}
\end{document}
